package com.siccr.model;

public class Passenger implements Person {
	private int id;
	protected String name;
	private char gender;
	private String seat;
	public Passenger(){
		this.name = "unknown";
	}
	public Passenger(String name, String seat) {
		super();
		this.id = 1;
		this.name = name;
		this.seat = seat;
	}
	@Override
	public boolean aboard(Airplane airplaneName, City cityName) throws Exception{
		return airplaneName.addPassenger(this) >= 0;
	}
	@Override
	public boolean land(City cityName) {
		// TODO Auto-generated method stub
		return false;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public char getGender() {
		return gender;
	}
	public void setGender(char gender) {
		this.gender = gender;
	}
	public String getSeat() {
		return seat;
	}
	public void setSeat(String seat) {
		this.seat = seat;
	}

}
